package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.LambdaArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Warn extends AbstractMethod {
    private static final String name = "warn";
    /**
    Filter expression for the WARNING alert level. An empty value indicates the level is invalid and is skipped.
    **/
    /**
    过滤警告警报级别的表达式。空值表示该级别无效并且被跳过。
    **/
    public Warn(String condition) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new LambdaArg(condition));


    }
}
